]> dgit.raspbian.org Git - gnome-shell.git/commit
workspace: Use Util.lerp() instead of actor box for interpolating
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 25 Feb 2021 16:20:42 +0000 (17:20 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 9 Mar 2021 15:40:49 +0000 (15:40 +0000)
commit59b97a30958663c2beefc29800e8ce8f7b107f2d
treea86f398b6b91b7cd08312be478a49d3ab97d0ec6
parentafb56df55cc1889b5181df2dea4014ec85a45810
workspace: Use Util.lerp() instead of actor box for interpolating

Instead of interpolating our workspace and layout boxes for each child
using clutter_actor_box_interpolate(), use our Util.lerp() function and
stay in JS land instead.

This is quite a large performance improvement since it avoids
heap-allocating a new ClutterActorBox for every child. With this, we're
finally at a duration of 1.0 ms to allocate the Workspace with 20
windows.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1743>
js/ui/workspace.js